home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / internet / weblibev / weblibpb.fun < prev    next >
Encoding:
Text File  |  1995-09-23  |  8.1 KB  |  219 lines

  1. //==============================================================================
  2. // Copyright 1995 by Potomac Software, Inc. Use of this material is subject to
  3. // the terms and conditions of the software license agreement.
  4. //    
  5. // WEBLIBPB.FUN: Contains PowerBuilder external global functions for WebLib (TM). 
  6. //==============================================================================
  7.  
  8. //========== Housekeeping functions ==========
  9.  
  10. FUNCTION boolean WLStartup() & 
  11.     LIBRARY "weblib.dll"
  12. FUNCTION boolean WLCleanup() & 
  13.     LIBRARY "weblib.dll"
  14. FUNCTION boolean WLSetDefaultNotify(uint hwndNotify,uint nMsg) & 
  15.     LIBRARY "weblib.dll"
  16.  
  17. //========== Browser API functions ==========
  18.  
  19. FUNCTION uint WLConnectBrowser(uint wOptions) & 
  20.     LIBRARY "weblib.dll"
  21. FUNCTION boolean WLDisconnectBrowser(uint hBrowser,boolean bExit) & 
  22.     LIBRARY "weblib.dll"
  23.  
  24. FUNCTION boolean WLGetWindowInfo(uint hBrowser,ulong dwWindow,REF string lpszURL, &
  25.         uint cbURL,REF string lpszTitle,uint cbTitle) & 
  26.     LIBRARY "weblib.dll"
  27.     
  28. FUNCTION ulong WLListWindows(uint hBrowser,boolean bFirst) & 
  29.     LIBRARY "weblib.dll"
  30.  
  31. FUNCTION ulong WLActivateWindow(uint hBrowser,ulong dwWindow) & 
  32.     LIBRARY "weblib.dll"    
  33. FUNCTION boolean WLCloseWindow(uint hBrowser,ulong dwWindow) & 
  34.     LIBRARY "weblib.dll"
  35.  
  36. FUNCTION boolean WLSetWindowPos(uint hBrowser,ulong dwWindow,ulong dwX,ulong dwY, &
  37.         ulong dwWidth,ulong dwHeight) & 
  38.     LIBRARY "weblib.dll"
  39.     
  40. FUNCTION boolean WLShowWindow(uint hBrowser,ulong dwWindow,uint nShow) & 
  41.     LIBRARY "weblib.dll"
  42.  
  43. FUNCTION ulong WLShowFile(uint hBrowser,string lpszFile,string lpszMIMEType,ulong dwWindow, &
  44.         string lpszURL,uint hwndNotify,uint nMsg) & 
  45.     LIBRARY "weblib.dll"
  46.     
  47. FUNCTION ulong WLOpenURL(uint hBrowser,string lpszURL,ulong dwWindow,uint wOptions, &
  48.         uint hwndNotify,uint nMsg) & 
  49.     LIBRARY "weblib.dll"
  50.     
  51. FUNCTION ulong WLSaveURL(uint hBrowser,string lpszURL,string lpszFile,ulong dwWindow, &
  52.         uint wOptions,uint hwndNotify,uint nMsg) & 
  53.     LIBRARY "weblib.dll"
  54.  
  55. FUNCTION ulong WLPostFormData(uint hBrowser,string lpszURL,ulong dwWindow, &
  56.         string lpszFormData,string lpszMIMEType,uint hwndNotify,uint nMsg) & 
  57.     LIBRARY "weblib.dll"
  58.     
  59. FUNCTION ulong WLSaveFormData(uint hBrowser,string lpszURL,string lpszFile,ulong dwWindow, &
  60.         string lpszFormData,string lpszMIMEType,uint hwndNotify,uint nMsg) & 
  61.     LIBRARY "weblib.dll"
  62.         
  63. FUNCTION boolean WLCancel(uint hBrowser,ulong dwTransaction) & 
  64.     LIBRARY "weblib.dll"
  65.     
  66. FUNCTION boolean WLRegisterProtocol(uint hBrowser,string lpszProtocol,uint hwndNotify, &
  67.         uint nMsg) & 
  68.     LIBRARY "weblib.dll"
  69.     
  70. FUNCTION boolean WLUnregisterProtocol(uint hBrowser,string lpszProtocol,uint hwndNotify) & 
  71.     LIBRARY "weblib.dll"
  72.  
  73. FUNCTION boolean WLRegisterURLEcho(uint hBrowser,uint hwndNotify,uint nMsg) & 
  74.     LIBRARY "weblib.dll"
  75. FUNCTION boolean WLUnregisterURLEcho(uint hBrowser,uint hwndNotify) & 
  76.     LIBRARY "weblib.dll"
  77.  
  78. FUNCTION boolean WLRegisterViewer(uint hBrowser,string lpszMIMEType,uint wOptions, &
  79.         uint hwndNotify,uint nMsg) & 
  80.     LIBRARY "weblib.dll"
  81.     
  82. FUNCTION boolean WLUnregisterViewer(uint hBrowser,string lpszMIMEType,uint hwndNotify) & 
  83.     LIBRARY "weblib.dll"
  84.  
  85. FUNCTION boolean WLRegisterWindowChange(uint hBrowser,ulong dwWindow,uint hwndNotify, &
  86.         uint nMsg) & 
  87.     LIBRARY "weblib.dll"
  88.     
  89. FUNCTION boolean WLUnregisterWindowChange(uint hBrowser,ulong dwWindow,uint hwndNotify) & 
  90.     LIBRARY "weblib.dll"
  91.  
  92. FUNCTION string WLParseAnchor(uint hBrowser,string lpszAbsoluteURL,string lpszRelativeURL) & 
  93.     LIBRARY "weblib.dll"
  94. FUNCTION ulong WLGetVersion(uint hBrowser,uint wMajor,uint wMinor) & 
  95.     LIBRARY "weblib.dll"
  96.  
  97. FUNCTION string WLQueryURLFile(uint hBrowser,string lpszFile) & 
  98.     LIBRARY "weblib.dll"        // Netscape only!
  99.  
  100. FUNCTION boolean WLSetNotifyMethod(uint hBrowser,uint wMethod) & 
  101.     LIBRARY "weblib.dll"    
  102. FUNCTION ulong WLGetTransactionWindow(uint hBrowser,ulong dwTransaction) & 
  103.     LIBRARY "weblib.dll"
  104.  
  105. SUBROUTINE WLNSetFileName(long lParam,string lpszFileName) & 
  106.     LIBRARY "weblib.dll"
  107.  
  108. //========== Toolbar functions ==========
  109.  
  110. FUNCTION uint WLCreateToolbar(string lpszMenu,uint hwndNotify,uint nMsg) & 
  111.     LIBRARY "weblib.dll"
  112. FUNCTION boolean WLDeleteToolbar(uint hToolbar) & 
  113.     LIBRARY "weblib.dll"
  114.  
  115. FUNCTION boolean WLIsToolbarActive(uint hToolbar) & 
  116.     LIBRARY "weblib.dll"
  117. FUNCTION boolean WLSetActiveToolbar(uint hToolbar) & 
  118.     LIBRARY "weblib.dll"
  119.  
  120. FUNCTION boolean WLAddToolbarButtonByFile(uint hToolbar,uint nID,uint nIdx, &
  121.     string lpszText,string lpszBitmapFile,string lpszBitmapSelFile, &
  122.         string lpszBitmapFocusFile,string lpszBitmapDisabledFile) &
  123.     LIBRARY "weblibex.dll"
  124.     
  125. FUNCTION boolean WLAddToolbarButtonByHandle(uint hToolbar,uint nID,uint nIdx, &
  126.         string lpszText,uint hBitmap,uint hBitmapSel,uint hBitmapFocus, &
  127.             uint hBitmapDisabled,boolean bCopy) &              
  128.     LIBRARY "weblibex.dll"
  129.         
  130. FUNCTION boolean WLAddToolbarButtonByID(uint hToolbar,uint nID,uint nIdx, &
  131.         string lpszText,uint hInstance,uint nBitmap,uint nBitmapSel,uint nBitmapFocus, &
  132.             uint nBitmapDisabled) &
  133.     LIBRARY "weblibex.dll"
  134.     
  135. FUNCTION boolean WLAddToolbarButtonByName(uint hToolbar,uint nID,uint nIdx, &
  136.         string lpszText,uint hInstance,string lpszBitmap,string lpszBitmapSel, &
  137.             string lpszBitmapFocus,string lpszBitmapDisabled) &
  138.     LIBRARY "weblibex.dll"        
  139.     
  140. FUNCTION boolean WLRemoveToolbarButton(uint hToolbar,uint nID) & 
  141.     LIBRARY "weblib.dll"             
  142.  
  143. FUNCTION boolean WLIsToolbarButtonVisible(uint hToolbar,uint nID) & 
  144.     LIBRARY "weblib.dll"
  145. FUNCTION boolean WLShowToolbarButton(uint hToolbar,uint nID,boolean bShow) & 
  146.     LIBRARY "weblib.dll"
  147.  
  148. FUNCTION boolean WLEnableToolbarButton(uint hToolbar,uint nID,boolean bEnable) & 
  149.     LIBRARY "weblib.dll"
  150. FUNCTION boolean WLIsToolbarButtonEnabled(uint hToolbar,uint nID) & 
  151.     LIBRARY "weblib.dll"
  152.  
  153. FUNCTION string WLGetToolbarText(uint hToolbar,uint nID) & 
  154.     LIBRARY "weblib.dll"
  155. FUNCTION boolean WLSetToolbarText(uint hToolbar,uint nID,string lpszText) & 
  156.     LIBRARY "weblib.dll"
  157.  
  158. FUNCTION uint WLGetToolbarFont(uint hToolbar,uint wType) & 
  159.     LIBRARY "weblib.dll"
  160. FUNCTION boolean WLSetToolbarFont(uint hToolbar,uint wType,uint hFont) & 
  161.     LIBRARY "weblib.dll"
  162.  
  163. FUNCTION ulong WLGetToolbarBkgnd(uint hToolbar) & 
  164.     LIBRARY "weblib.dll"
  165. FUNCTION boolean WLSetToolbarBkgnd(uint hToolbar,ulong crBackground) & 
  166.     LIBRARY "weblib.dll"
  167.  
  168. FUNCTION ulong WLGetToolbarTextColor(uint hToolbar,uint wType) & 
  169.     LIBRARY "weblib.dll"
  170. FUNCTION boolean WLSetToolbarTextColor(uint hToolbar,uint wType,ulong crText) & 
  171.     LIBRARY "weblib.dll"
  172.  
  173. //========== Utility functions for building form data buffer for posting to URL =====
  174.  
  175. FUNCTION uint WLAppendFormData(uint hFormData,string lpszName,string lpszData,uint cbData) & 
  176.     LIBRARY "weblib.dll"
  177. FUNCTION uint WLGetFormDataLength(uint hFormData) & 
  178.     LIBRARY "weblib.dll"
  179. FUNCTION boolean WLAccessFormData(uint hFormData,REF string lpszRetBuf,uint cbRetBuf) & 
  180.     LIBRARY "weblib.dll"
  181.  
  182. //========== Functions for accessing parameters of browser and toolbar events =====
  183.  
  184. FUNCTION ulong WLNGetTransaction(long lParam) & 
  185.     LIBRARY "weblibex.dll"
  186. FUNCTION string WLNGetProgressString(long lParam) & 
  187.     LIBRARY "weblibex.dll"
  188. FUNCTION ulong WLNGetProgressValue(long lParam) & 
  189.     LIBRARY "weblibex.dll"
  190. FUNCTION ulong WLNGetProgressMaximum(long lParam) & 
  191.     LIBRARY "weblibex.dll"
  192. FUNCTION ulong WLNGetWindow(long lParam) & 
  193.     LIBRARY "weblibex.dll"
  194. FUNCTION string WLNGetURL(long lParam) & 
  195.     LIBRARY "weblibex.dll"
  196. FUNCTION string WLNGetMIMEType(long lParam) & 
  197.     LIBRARY "weblibex.dll"
  198. FUNCTION string WLNGetReferrer(long lParam) & 
  199.     LIBRARY "weblibex.dll"
  200. FUNCTION ulong WLNGetFlags(long lParam) & 
  201.     LIBRARY "weblibex.dll"
  202. FUNCTION string WLNGetSaveFile(long lParam) & 
  203.     LIBRARY "weblibex.dll"
  204. FUNCTION string WLNGetFormData(long lParam) & 
  205.     LIBRARY "weblibex.dll"
  206. FUNCTION ulong WLNGetX(long lParam) & 
  207.     LIBRARY "weblibex.dll"
  208. FUNCTION ulong WLNGetY(long lParam) & 
  209.     LIBRARY "weblibex.dll"
  210. FUNCTION ulong WLNGetWidth(long lParam) & 
  211.     LIBRARY "weblibex.dll"
  212. FUNCTION ulong WLNGetHeight(long lParam) & 
  213.     LIBRARY "weblibex.dll"
  214. FUNCTION string WLNGetFileName(long lParam) & 
  215.     LIBRARY "weblibex.dll"
  216. FUNCTION uint WLNGetButtonID(long lParam) & 
  217.     LIBRARY "weblibex.dll"
  218.     
  219.